home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
netprog.zip
/
NETPROG.TAR
/
fd
/
Makefile
next >
Wrap
Makefile
|
1989-12-17
|
566b
|
24 lines
#
# Makefile for file descriptor passing example. Note that the same Makefile
# can be used for both 4.3BSD and System V. The only differences in the
# two examples are the files "sendfile.c" and "recvfile.c" along with the
# different MYLIB contents.
#
CFLAGS = -O
MYLIB = ../libnet.a
all: mycat openfile
#
mycat: mycat.o myopen.o recvfile.o $(MYLIB)
cc $(CFLAGS) -o $@ mycat.o myopen.o recvfile.o $(MYLIB)
openfile: openfile.o sendfile.o $(MYLIB)
cc $(CFLAGS) -o $@ openfile.o sendfile.o $(MYLIB)
#
clean:
-rm -f *.o core a.out temp*.* mycat openfile